package com.cloudbroker.openapi.mobile.controller;

import static com.cloudbroker.bcs.platform.dav.common.util.RequestUtil.getSingleParameterMapForBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cloudbroker.bcs.common.util.VOUtil;
import com.cloudbroker.bcs.platform.dav.bizapi.service.business.plugs.result.ExtendAppGroupFansListResult;
import com.cloudbroker.bcs.platform.dav.bizapi.service.business.plugs.vo.ExtendAppGroupForm;
import com.cloudbroker.bcs.platform.dav.bizapi.t2service.business.ExtendAppGroupT2BizService;
import com.cloudbroker.bcs.platform.dav.common.ext.annotation.SaveLog;

@Controller
public class ExtendAppGroupFansController {

	@Resource
	private ExtendAppGroupT2BizService extendAppGroupT2;
	
    @ResponseBody
    @RequestMapping("/func_extendapp_by_group_fans")
    @SaveLog(remark = "fans通过分组ID获取组件列表")
	public ExtendAppGroupFansListResult funcExtendAppByGroupFans(HttpServletRequest request,String jsonpcallback) {
    	ExtendAppGroupForm form = getSingleParameterMapForBody(request, ExtendAppGroupForm.class);
    	return VOUtil.setJsonpResult(extendAppGroupT2.funcExtendAppByGroupFans(form), jsonpcallback);
	}
}
